package com.bw.wxy.mvp.contract;

import com.bw.wxy.mvp.model.entity.BaseEntity;
import com.bw.wxy.mvp.model.entity.UserItemEntity;
import com.bw.wxy.mvp.model.entity.UserMenuEntity;
import com.bw.wxy.mvp.base.model.IModel;
import com.bw.wxy.mvp.base.view.IView;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;

public interface UserContract {

    interface IUserModel extends IModel{
        Observable<BaseEntity> requestUser(Map<String,Object>map);
    }

    interface IUserView extends IView{
        void refresh(BaseEntity baseEntity);  //签到
        void refreshMenu(List<UserMenuEntity>menus);  //菜单
        void refreshItems(List<UserItemEntity>items);   //商城等item
        void showUser(BaseEntity baseEntity);
    }
}